<template>
    <view class="container">
        <view class="wrapper">
            <view class="top">
                <image v-if="data.State == 0" src="/pages_supplier/static/bohui.png" mode="aspectFill"></image>
                <image v-else src="/pages_supplier/static/awaiticon.png" mode="aspectFill"></image>
                <view>{{ data.Msg }}</view>
            </view>
        </view>
        <view class="flex-between">
            <button class="btn btn-white-hollow" @click="goUrl('/pages/login/index')">返回登陆页</button>
            <button
                v-if="data.State == 0"
                class="btn btn-success"
                @click="goUrl('/pages_supplier/packet/login/supplyInfo?look=1&id=' + data.Data + '&edit=1')">
                修改入驻信息
            </button>
            <button
                v-if="data.State == 2"
                class="btn btn-success"
                @click="goUrl('/pages_supplier/packet/login/supplyInfo?look=1&id=' + data.Data + '&edit=0')">
                查看入驻信息
            </button>
        </view>
    </view>
</template>

<script>
import { getRemainTime } from "@/uni-sub-base/utils/utils"
import storage from "@/uni-sub-base/utils/storage.js"
import config from "@/config/config.js"
import { BusinessLogin } from "@/pages_supplier/service/api/authorize.js"
import webViewUrl from "@/pages/micro/webViewUrl.js"
export default {
    components: {},
    data() {
        return {
            data: {},
            State: null,
            Data: "",
            Msg: "大三房打大三房萨达",
        }
    },
    onLoad(e) {
        this.data = JSON.parse(e.data)
        console.log(this.data)
        this.State = e.State
        this.Data = e.Data
        this.Msg = e.Msg
    },
    mounted() {},
    methods: {
        call() {
            uni.makePhoneCall({
                phoneNumber: this.tel, //仅为示例
            })
        },
        goUrl(url) {
            this.easyReLaunch(url)
        },
    },
}
</script>

<style lang="scss">
.container {
    padding: 24rpx;
}
.wrapper {
    background: #ffffff;
    .top {
        height: 338rpx;
        margin: 0 24rpx;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        font-size: 32rpx;
        color: $color-gray-1;
        // border-bottom: 1rpx solid $uni-border-bottom-color;
        image {
            width: 108rpx;
            height: 108rpx;
            margin-bottom: 26rpx;
        }
    }
    .bottom {
        display: flex;
        flex-direction: column;
        padding: 24rpx;
        font-size: 30rpx;
        line-height: 2.5;
        color: $color-gray-1;
    }
}
.btn {
    width: 284rpx;
    margin-top: 48rpx;
}
</style>
